<%-- 
    Document   : listar
    Created on : 28/09/2013, 08:26:49 PM
    Author     : Daniel
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>listado de Vehiculo</title>
    </head>
    <body>
        <h1>listado de Vehiculo</h1>
        <form method="post" action="ControladorBasico?op=listarxC">
        <table border=1 align="center" width="80%">
        <tr>
               <td width="50%">Cargo</td>
               <td width="50%">
                        <select name="slcCargo">
                        <c:forEach items="${marca}" var="item" >
                            <option value="${item.id_vehiculo}">${item.color}</option>
                        </c:forEach>
                        </select>
               </td>
               <tr>
                    <td width="50%">&nbsp;</td>
                    <td width="50%">
                        <input type="submit" value="Buscar" />
                    </td>
                </tr>
               
          </tr>
        </table>
          </form> 
        <table border=1 align="center" width="80%">
                
                <th>id_vehiculo</th> 
                <th>marca</th>
                
            </tr>
            
            <c:forEach items="${vehiculo}" var="t" >
                <tr>
                    <td>${t.id_vehiculo}</td>
                    <td>${t.marca}</td>
                    
                </tr>
            </c:forEach>
        </table>
        <a href="inicio.jsp" >inicio</a>
    </body>
</html>
